package com.admin.dao

import com.data.annotation.NoargAnnotation
import com.data.annotation.OpenAnnotation
import com.data.bean.IndexCase
import com.data.entity.IndexCaseEntity
import org.apache.ibatis.annotations.Param
import org.springframework.stereotype.Repository

/**
 * FileName: IndexCaseAdminDao
 * Author:   HingLo
 * Date:     2017/11/6 10:04
 * Description: 案例管理的数据层
 */
@Repository
@OpenAnnotation
@NoargAnnotation
interface IndexCaseAdminDao {
    //fun listIndexCaseDao(): List<IndexCase>
    fun listIndexCaseDao(): List<IndexCase>

    fun deleteIndexCaseDao(@Param("id") id: String): Int
    fun findByIdIndexCaseDao(@Param("id") id: String): IndexCase?
    fun changeStateDao(@Param("indexCaseEntity") indexCaseEntity: IndexCaseEntity): Int
    fun saveMassageDao(@Param("indexCase") indexCase: IndexCase): Int
}
